.fbbyq{
    width: 100vw;
    height: 100vh;
    background-color: #f2f2f2;
}

.fbbyq-form {
    padding: 20px;
    background-color: #fff;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    min-height: calc(100vh - 60px);
    margin-top: 10px;
}

.form-section {
    margin-bottom: 30px;
    
    &:last-of-type {
        margin-bottom: 20px;
    }
}

.treatment-section {
    margin-bottom: 30px;
}

.treatment-form {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
    margin-top: 10px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.form-item {
    margin-bottom: 0;
    padding-bottom: 20px;
    
    &:last-child {
        border-bottom: none;
    }
}

.treatment-form .form-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    
    &:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }
}

.treatment-form .form-input,
.treatment-form .form-select,
.treatment-form .form-textarea {
    border-bottom: 1px solid #e0e0e0;
    border: none;
    border-radius: 0;
    padding: 0;
    background-color: transparent;
    
    &:focus {
        border-bottom-color: #007bff;
        outline: none;
    }
}

.treatment-form .form-textarea {
    min-height: 80px;
    resize: vertical;
}


.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-asterisk {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #007bff;
    font-size: 14px;
    z-index: 1;
    pointer-events: none;
}

.form-input {
    width: 100%;
    height: 50px;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 0;
    padding-left: 20px;
    font-size: 14px;
    color: #333;
    background-color: transparent;
    box-sizing: border-box;
    
    &:focus {
        outline: none;
        border-bottom-color: #007bff;
    }
    
    &::placeholder {
        color: #999;
    }
    
    &.error {
        border-bottom-color: #ff4757;
        border-bottom-width: 2px;
    }
}

.form-select {
    width: 100%;
    height: 50px;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 0;
    padding-left: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: transparent;
    cursor: pointer;
    
    &:hover {
        border-bottom-color: #007bff;
    }
    
    &.error {
        border-bottom-color: #ff4757;
        border-bottom-width: 2px;
    }
}

.select-text {
    font-size: 14px;
    color: #333;
}

.select-arrow {
    font-size: 12px;
    color: #666;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

.form-select.open .select-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #f8f8f8;
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background-color: #f8f8f8;
    padding: 0;
}

.dropdown-grid-item {
    background-color: #f8f8f8;
    padding: 20px 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
    border: none;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    &:hover {
        background-color: #e8e8e8;
    }
}



.textarea-container {
    position: relative;
    width: 100%;
    min-height: 120px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: flex-start;
}


.form-textarea {
    width: 100%;
    min-height: 120px;
    border: none;
    border-radius: 0;
    padding: 0;
    padding-left: 20px;
    font-size: 14px;
    color: #333;
    background-color: transparent;
    resize: none;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.4;
    
    &:focus {
        outline: none;
    }
    
    &::placeholder {
        color: #999;
    }
    
    &.error {
        border-bottom-color: #ff4757;
        border-bottom-width: 2px;
    }
}

.char-limit {
    position: absolute;
    bottom: 8px;
    right: 0;
    font-size: 12px;
    color: #007bff;
    background-color: #fff;
    padding: 0 4px;
}

.image-upload-section {
    margin-top: 20px;
    margin-left: -20px;
    margin-right: -20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 0;
}

.upload-instruction {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    margin-left: -20px;
    margin-right: -20px;
    background-color: #f5f5f5;
    padding: 10px 20px;
    border-radius: 0;
}

.image-upload-area {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


.image-placeholder {
    width: 60px;
    height: 60px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
    
    &:hover {
        border-color: #007bff;
        background-color: #f0f8ff;
    }
}

.plus-icon {
    font-size: 20px;
    color: #999;
    font-weight: 300;
}

.bounty-section {
    margin-top: 20px;
    margin-left: -20px;
    margin-right: -20px;
    padding: 1px 15px;
    background-color: #f5f5f5;
    border-radius: 0;
}

.bounty-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bounty-label {
    font-size: 14px;
    color: #333;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background-color: #ddd;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-handle {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.bounty-description {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    margin-bottom: 15px;
}

.submit-section {
    margin-top: 20px;
    padding-top: 0;
}

.submit-btn {
    width: 100%;
    height: 48px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    
    &:hover {
        background-color: #0056b3;
    }
    
    &:active {
        background-color: #004085;
    }
    
    &:disabled {
        background-color: #ccc;
        cursor: not-allowed;
        
        &:hover {
            background-color: #ccc;
        }
    }
}

// 日期选择器样式
.date-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.date-picker-modal {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.date-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.date-picker-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.date-picker-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-picker-info {
    padding: 15px 20px;
    font-size: 14px;
    color: #666;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.date-picker-wheels {
    display: flex;
    height: 200px;
    overflow: hidden;
}

.date-wheel {
    flex: 1;
    overflow-y: auto;
    border-right: 1px solid #e0e0e0;
    
    &:last-child {
        border-right: none;
    }
}

.date-wheel-item {
    padding: 15px 10px;
    text-align: center;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    
    &:hover {
        background-color: #f5f5f5;
    }
    
    &.selected {
        background-color: #e3f2fd;
        color: #1976d2;
        font-weight: 600;
    }
}

.date-picker-confirm {
    width: 100%;
    height: 50px;
    background-color: #007bff;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    
    &:hover {
        background-color: #0056b3;
    }
}

// 校验提示样式
.validation-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    animation: validationSlideIn 0.3s ease-out;
}

.validation-content {
    background-color: #fff;
    border: 1px solid #ff4757;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 90vw;
    
    &.success {
        border: 1px solid #28a745;
        box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
    }
}

.validation-text {
    color: #ff4757;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    margin-right: 15px;
    
    &.success {
        color: #28a745;
    }
}

.validation-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #ff4757;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    
    &:hover {
        background-color: #ff4757;
        color: white;
    }
}

@keyframes validationSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
